import datetime
from apps.extensions import db

# 文章和标签的关联表
post_tag = db.Table('cms_post_tag',
    db.Column('post_id', db.Integer, db.ForeignKey('cms_post.id'), primary_key=True),
    db.Column('tag_id', db.Integer, db.ForeignKey('cms_tags.id'), primary_key=True),
    db.Column('created_at', db.DateTime, default=datetime.datetime.now, comment='创建时间')
) 